package com.yxw.live_vod_backend_boot.entity;


import com.yxw.live_vod_backend_facade.vo.LiveAgreementVO;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
//import lombok.EqualsAndHashCode;



/*** 
*@author Jiaxu.Huang
*@date 2023/12/10 11:46:16
*@update 2023/12/10 11:46:16
**/
@Data
@NoArgsConstructor
@TableName("yx_live_agreement")
//@EqualsAndHashCode(callSuper = true)
public class YxLiveAgreementEntity   implements Serializable
{
    private static final long serialVersionUID = 51702179976637L;
    /**
    *协议Id
    */
    @TableId(value = "agreement_id",type = IdType.AUTO)
    @ApiModelProperty(value = "协议Id")
    private Integer Id;
    /**
    *协议内容
    */
    @TableField("agreement_content")
    @ApiModelProperty(value = "协议内容")
    private String agreementContent;
    /**
    *创建人
    */
    @TableField("user_id")
    @ApiModelProperty(value = "创建人")
    private String userId;
    /**
    *状态:1生效,0失效(全表只有一条记录是生效的状态)
    */
    @TableField("state")
    @ApiModelProperty(value = "状态:1生效,0失效(全表只有一条记录是生效的状态)")
    private Integer state;
    /**
    *创建时间
    */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**
    *修改时间
    */
    @TableField("update_time")
    @ApiModelProperty(value = "")
    private java.util.Date updateTime;
    public LiveAgreementVO convertToLiveAgreementVO()
    {
        LiveAgreementVO oLiveAgreementVO = new LiveAgreementVO();
        oLiveAgreementVO.setId(Id);
        oLiveAgreementVO.setUserId(userId);
        oLiveAgreementVO.setAgreementContent(agreementContent);
        oLiveAgreementVO.setCreateTime(createTime);
        oLiveAgreementVO.setState(state);
        oLiveAgreementVO.setUpdateTime(updateTime);
        return oLiveAgreementVO;
    }
}

